package com.ibeeking.found.log.service.common.param;

import com.ibeeking.nematos.utils.base.BaseValidationGroup;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @ClassName LogGroupParam
 * @Description
 * @Author ibeeking
 * @Date 2021-02-25 17:55
 **/
@Data
public class LogGroupParam implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = {BaseValidationGroup.Update.class})
    private Long id;

    /**
     * 分组名称
     */
    @Length(min = 1, max = 250, message = "指标描述不能超过250个字")
    @NotBlank(message = "日志分组名称不能为空!")
    private String name;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空!")
    private Integer sort;


}
